package com.lanhe.app.controller.versionRec;

import com.lanhe.common.core.controller.BaseController;
import com.lanhe.common.core.domain.AjaxResult;
import com.lanhe.versionRec.service.ILhVersionRecService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * app版本表(LhVersionRec)表控制层
 *
 * @author zhanggl
 * @since 2024-01-13 21:56:43
 */
@RestController
@RequestMapping("/api/versionRec")
public class ApiVersionRecController extends BaseController {
	/**
	 * 服务对象
	 */
	@Resource
	private ILhVersionRecService lhVersionRecService;

	/**
	 * 获取版本信息
	 *
	 * @author zhanggl
	 * @date 2024年01月13日22:32:16
	 */
	@GetMapping("/getLatestVersion")
	public AjaxResult getLatestVersion() {
		return success(lhVersionRecService.getLatestVersion());
	}
}

